package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品分类对象 category
 *
 * @author ruoyi
 * @date 2025-04-08
 */
public class Category extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 分类ID
     */
    private Long id;

    /**
     * 分类名称（如：Two Piece Swimwear）
     */
    @Excel(name = "分类名称", readConverterExp = "如=：Two,P=iece,S=wimwear")
    private String name;

    /**
     * 分类描述（如：Show off your curves while swimming）
     */
    @Excel(name = "分类描述", readConverterExp = "如=：Show,o=ff,y=our,c=urves,w=hile,s=wimming")
    private String description;

    /**
     * 分类图片URL
     */
    @Excel(name = "分类图片URL")
    private String imageUrl;

    /**
     * 是否热门分类
     */
    @Excel(name = "是否热门分类")
    private Integer isHot;

    /**
     * 状态（0禁用 1正常）
     */
    @Excel(name = "状态", readConverterExp = "0=禁用,1=正常")
    private Integer status;


    private Integer salesVolume;

    public Integer getSalesVolume() {
        return salesVolume;
    }

    public void setSalesVolume(Integer salesVolume) {
        this.salesVolume = salesVolume;
    }

    private String customerName;

    private String customerNumber;

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getCustomerNumber() {
        return customerNumber;
    }

    public void setCustomerNumber(String customerNumber) {
        this.customerNumber = customerNumber;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setIsHot(Integer isHot) {
        this.isHot = isHot;
    }

    public Integer getIsHot() {
        return isHot;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("description", getDescription())
                .append("imageUrl", getImageUrl())
                .append("isHot", getIsHot())
                .append("status", getStatus())
                .append("createTime", getCreateTime())
                .toString();
    }
}
